package com.heima.user.controller;



import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dto.LoginDto;
import com.heima.model.user.entity.ApUser;
import com.heima.user.service.ApUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * APP用户表(ApUser)表控制层
 *
 * @author makejava
 * @since 2023-06-21 17:46:48
 */
@Api(tags = "用户接口")
@RestController
@RequestMapping("/api/v1/login")
public class ApUserLoginController {
    /**
     * 服务对象
     */
    @Resource
    private ApUserService apUserService;


    @ApiOperation("用户登录")
    @PostMapping("/login_auth")
    public ResponseResult login(@RequestBody LoginDto loginDto){


        return apUserService.login(loginDto);
    }




}

